# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-pyotherside
pkgver=1.6.0
pkgrel=3
pkgdesc="Asynchronous Python 3 Bindings for Qt5"
url="https://thp.io/2011/pyotherside"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative"
license="ISC"
makedepends="python3-dev qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev"
options="!check" # can't run tests if not installed.
source="py3-pyotherside-$pkgver.tar.gz::https://github.com/thp/pyotherside/archive/$pkgver.tar.gz"
builddir="$srcdir/pyotherside-$pkgver"

build() {
	qmake-qt5
	make
}

package() {
	make INSTALL_ROOT="$pkgdir"/ install

	rm -r "$pkgdir"/usr/tests
}

sha512sums="
57835db9d65fae10e6b3ec8ab37793e316324e7a819a1045436adf9eabdee11ccf3090a4db0302283b236e77e5e0bd14cf92ed1430835ccc324e50085a872787  py3-pyotherside-1.6.0.tar.gz
"
